<h1>SCitas List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Profesional</th>
      <th>Paciente</th>
      <th>Sede</th>
      <th>Fecha hora</th>
      <th>Estado</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($SCitas as $SCita): ?>
    <tr>
      <td><a href="<?php echo url_for('cita/show?id='.$SCita->getId()) ?>"><?php echo $SCita->getId() ?></a></td>
      <td><?php echo $SCita->getProfesionalId() ?></td>
      <td><?php echo $SCita->getPacienteId() ?></td>
      <td><?php echo $SCita->getSedeId() ?></td>
      <td><?php echo $SCita->getFechaHora() ?></td>
      <td><?php echo $SCita->getEstado() ?></td>
      <td><?php echo $SCita->getCreatedAt() ?></td>
      <td><?php echo $SCita->getUpdatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('cita/new') ?>">New</a>
